﻿@{
    Layout = null;
}

<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <title>登陆</title>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
    <link rel="stylesheet" href="~/css/default.css" />
</head>
<body>    ﻿<header class="hd1">
        <div class="cg">
            <div class="hd1-left">
                <a href="~/Home/Index"><img class="am-hide-md-down" src="~/images/logo.jpg" /></a>
                <a href="~/Home/Index"><img class="am-show-md-down" src="~/images/logo-sm.jpg" /></a>
            </div>
            <div class="hd1-right">
                <a href="~/User/login" class="cur">登录</a>
                <a href="~/User/register">注册</a>
            </div>
        </div>
    </header>
    <div class="user">
        <div class="cgs">
            <div class="am-u-sm-12 am-u-md-7">
                <div class="user-div">
                    <form method="post">
                        <h1>用户登录</h1>
                        @if (ViewBag.ErrorMessage != null)
                        {
                            <div style="color:red;">
                                @ViewBag.ErrorMessage
                            </div>
                        }
                        @using (Html.BeginForm())
                        {
                            <ul>
                                <li>
                                    <i>&#xe681;</i>@Html.TextBox("uname")
                                </li>
                                <li>
                                    <i>&#xe680;</i>@Html.Password("upwd")
                                </li>
                            </ul>
                            <span><a href="#">忘记密码</a></span>
                            <br />
                            <div align="center">
                                <button>登录</button>
                            </div>
                        }
                    </form>
                </div>
            </div>
            <div class="am-hide-sm am-u-md-5">
                <div class="user-right">
                    <a href="~/User/register">还没有帐号</a>
                    <button onclick="location.href = 'register';">立即注册</button>
                </div>
            </div>
        </div>
    </div>
</body>
</html>